<?
if(!MEMBER) header('location: ./');
if(PHOTOS_MULTIALBUM) {
    if(POST) {} 
    $data->photos = photos::get(array('photos'=>true,'ID'=>PARAMS?PARAMS:UID));
    $data->TITLE = _('Albums');
    $data->DESCRIPTION = _('Photos.');
} else {
    if(!MEMBER) common::accessdenied();
    if(POST) {} 
    $data->album = photos::get(array('album'=>true,'accountID'=>PARAMS?PARAMS:UID));
    $data->TITLE = $data->album->name;
    $data->DESCRIPTION = _('Photos.');
}

@include 'apps/advertisement/trunk/_item.php';
$data->CSS = 'advertisement';

?>